<?php
/**
 *
 * CmsArtCatRepository.php
 * User: kalvin
 * Date: 2018/4/8
 * Time: 下午2:47
 */

namespace App\System\Cms\Repositories;


use App\System\Base\Helpers\Traits\SinglePattern;
use App\System\Base\Repositories\Repository;
use App\System\Cms\Model\CmsArtCat;

class CmsArtCatRepository extends Repository
{
    use SinglePattern;
    public function getList()
    {
        $data=[];
       $data['total']=CmsArtCat::count();
       $data['categorys'] = CmsArtCat::select(['id','name'])->get();
       return $data;
    }
}